import request from '@/utils/request'

let HomeproductApi = {
  /*商品列表*/
  productlist(data, errorback) {
    return request._post('/mall/market.home.product/index', data, errorback);
  },
  /*获取专区商品*/
  detail(data, errorback) {
    return request._get('/mall/market.home.product/detail', data, errorback);
  },
  editProduct(data, errorback) {
    return request._post('/mall/market.home.product/edit', data, errorback);
  },
  /*添加专区商品*/
  addProduct(data, errorback) {
    return request._post('/mall/market.home.product/add', data, errorback);
  },
  /*删除商品*/
  deleteProduct(data, errorback) {
    return request._post('/mall/market.home.product/delete', data, errorback);
  },
}
export default HomeproductApi;
